import os.path

# from utils.generator import generate
from main_ui import main


def check_config():
    file_path = "config/settings.json"
    if not os.path.exists(file_path):
        os.makedirs("config")
        with open(file_path, 'w') as f:
            text = '''
{
    "input_file_path": "<use-your-input-file-path>",
    "max_tokens": "8192",
    "temperature": "0.2",
    "api_type": "deepseek",
    "api_url": "https://api.deepseek.com/v1/",
    "api_key": "<enter-your-api-key>",
    "gen_test_case": true,
    "gen_erl_case": false,
    "gen_document_case": false,
    "gen_json_case": false
}
            '''
            f.write(text)


if __name__ == "__main__":
    # generate()
    check_config()
    main()
